package com.ahs.region;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;

import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * Hello world!
 *
 */
@EnableSwagger2
@EnableEurekaClient
@EnableDiscoveryClient
@SpringBootApplication
public class User1Server{
	private static final Log logger = LogFactory.getLog(User1Server.class);
	
//	@Override
//	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
//		return builder.sources(User1Server.class);
//	}
	
	public static void main(String[] args) {
		logger.info("测试服务器启动");
		new SpringApplicationBuilder(User1Server.class).web(true).run(args);
//		SpringApplication.run(User1Server.class, args);
		logger.info("测试服务器启动");
	}
}